package com.entity;
// default package

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * ResourcesSignRecord entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "RESOURCES_SIGN_RECORD")
public class ResourcesSignRecordEntity implements java.io.Serializable {

	// Fields

	private String id;
	private ResourcesEntity resourcesEntity=new ResourcesEntity();
	private String signName;
	private String signReason;
	private String signStatus;
	private Date createDate;
	private String rejectReason;

	// Constructors

	/** default constructor */
	public ResourcesSignRecordEntity() {
	}

	/** minimal constructor */
	public ResourcesSignRecordEntity(String id) {
		this.id = id;
	}


	// Property accessors
	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid2")
	@Column(name = "ID")
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	

	// Property accessors
	@ManyToOne(cascade={CascadeType.ALL})           
	@JoinColumn(name="RESOURCE_ID")
	public ResourcesEntity getResourcesEntity() {
		return this.resourcesEntity;
	}

	public void setResourcesEntity(ResourcesEntity custId) {
		this.resourcesEntity = custId;
	}


	@Column(name = "SIGN_NAME")
	public String getSignName() {
		return this.signName;
	}

	public void setSignName(String signName) {
		this.signName = signName;
	}

	@Column(name = "SIGN_REASON")
	public String getSignReason() {
		return this.signReason;
	}

	public void setSignReason(String signReason) {
		this.signReason = signReason;
	}

	@Column(name = "SIGN_STATUS")
	public String getSignStatus() {
		return this.signStatus;
	}

	public void setSignStatus(String signStatus) {
		this.signStatus = signStatus;
	}
	
	
	@Column(name = "REJECT_REASON")
	public String getRejectReason() {
		return rejectReason;
	}

	public void setRejectReason(String rejectReason) {
		this.rejectReason = rejectReason;
	}

	@Column(name = "CREATE_DATE")
	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}